package com.ljb.android.component.knowledge

import android.content.Context
import com.ljb.android.comm.weiget.page.PageStateLayout
import com.ljb.android.component.knowledge.common.KnowConstant

object KnowInit {

    fun init(context: Context) {
        initPage()
    }

    private fun initPage() {
        PageStateLayout.apply {
            setDefaultEmptyLayout(R.layout.know_layout_empty, KnowConstant.MODULE_NAME)
            setDefaultErrorLayout(R.layout.know_layout_error, KnowConstant.MODULE_NAME)
            setDefaultLoadLayout(R.layout.know_layout_loading, KnowConstant.MODULE_NAME)
        }
    }
}